﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WithoutPermBasic.Master" AutoEventWireup="true" CodeBehind="ViewStorageOutDetail.aspx.cs" Inherits="StorageManage.UI.ViewStorageOutDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
     <style>
        input{border:none;}
    </style>
    <script type="text/javascript">
        $(function () {
            $('input').attr('readonly', 'readonly');
            com.ajax({
                url: '/Logic/StorageOut.aspx?method=GetViewStorageOut&outCode=' + com.get.outCode,
                success: function (data) {
                    $('#form1').form('load', data.main);
                    $('#tbList').datagrid({
                        data:data.list,
                        rownumbers: true,
                        idField: 'Id',
                        singleSelect: true,
                        columns: [[
                           { field: 'ck', checkbox: true, width: 30 },
                            {
                                field: 'MaterialCode', title: '物料编码', width: 110, align: 'center',
                            },
                            { field: 'Name', title: '物料名称', width: 120, align: 'center', },
                            { field: 'Guige', title: '规格型号', width: 110, align: 'center', },
                            { field: 'Caizhi', title: '材质', width: 110, align: 'center', },
                            { field: 'CunHuoZhangNum', title: '存货张数', width: 70, align: 'center', },
                            { field: 'CunHuoWeight', title: '库存重量', width: 110, align: 'center', },
                            {
                                field: 'Length', title: '长(mm)', width: 75, align: 'center',
                              
                            },
                            {
                                field: 'Width', title: '宽(mm)', width: 75, align: 'center',
                               
                            },                     
                            {
                                field: 'OutZhangNum', title: '总支/张', width: 75, align: 'center',
                              
                            },
                            {
                                field: 'OutTotalWeight', title: '总重', width: 80, align: 'center',
                               
                            },
                        ]],

                    });
                }
            });
           

        })
        </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceToorbar" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <div id="divTotal" style="height:100%;width:100%">
         <div id="master" style="height: auto;width:100%">
             <form id="form1">
                  <table style="width:100%">
                    <tr >
                        <th colspan="8">
                            <h1>生产出库单</h1>
                        </th>
                    </tr>
                    <tr>
                        <th colspan="8">
                                <hr />
                        </th>
                    </tr>
                    <tr>
                        <td style="text-align:right;">出库单号：</td>
                        <td>
                            <input type="text" name="OutCode" id="OutCode"/>
                        </td>
                         <td style="text-align:right;">制单人：</td>
                        <td> 
                            <input type="text" name="ApplyPerson" id="ApplyPerson"/>
                        </td>
                         <td style="text-align:right;">制单时间：</td>
                        <td>
                            <input type="text" name="ApplyTime" id="ApplyTime"/>
                        </td>
                         <td style="text-align:right;">领料班组：</td>
                        <td>
                            <input id="OutTeam" name="OutTeam"/>
                        </td>
                    </tr>

                    <tr>
                        <td style="text-align:right;">生产制号：</td>
                        <td>
                            <input type="text" name="TaskCode" id="TaskCode"/>
                        </td>
                         <td style="text-align:right;">项&nbsp;&nbsp;&nbsp;&nbsp;目：</td>
                        <td>
                            <input type="text" name="ProjName" id="ProjName" />
                        </td>
                         <td style="text-align:right;">工&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;程：</td>
                        <td>
                            <input type="text" name="EngName" id="EngName"/>
                        </td>
                         <td style="text-align:right;">仓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;库：</td>
                        <td>
                            <input type="text" name="Warehouse" id="Warehouse" />
                        </td>
                    </tr>
                    <tr>
                         <td style="text-align:right;">领&nbsp;&nbsp;料&nbsp;&nbsp;人：</td>
                        <td>
                            <input type="text" name="OutPerson" id="OutPerson" />
                        </td>
                        <td style="text-align:right;">备&nbsp;&nbsp;&nbsp;&nbsp;注：</td>
                <td ">
                    <input type="text" name="Note" id="Note" style="width:200px;" />
                </td>
                    </tr>
                </table>
             </form>
         </div>
         <table id="tbList" title="余料出库表" style="width:100%"  >
        </table>
    </div>
</asp:Content>
